package com.zxj.job.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxj.job.domain.user.UserScore;
import com.zxj.job.domain.user.UserSubmit;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户提交表 Mapper 接口
 * </p>
 *
 * @author zxj2022
 * @since 2025-01-12
 */
public interface UserSubmitMapper extends BaseMapper<UserSubmit> {

    /**
     * 查询用户提交的题目列表,依据用户提交次数排序获得热门题目
     * @return 热门题目列表ID
     */
    List<Long> selectHostQuestionList();

    /**
     *
     * @param examIdSet
     * @return
     */
    List<UserScore> selectUserScoreList(Set<Long> examIdSet);
}
